home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 897 b | 36 lines | [TEXT/MPS ] |
- #include <ToolUtils.h>
- #include <Quickdraw.h>
- #include <StdIO.h>
-
- main()
- {
- GDHandle theGDList;
- Ptr theBase;
- int theRow;
- int theDepth;
-
- theGDList = GetDeviceList();
-
- do {
- theBase = (*(*theGDList)->gdPMap)->baseAddr;
- printf ("The GDevice I am looking at has a Base Address of %X\n", theBase);
- } while ((theGDList = GetNextDevice(theGDList)) != nil);
-
- theGDList = GetDeviceList();
-
- do {
- theRow = (*(*theGDList)->gdPMap)->rowBytes;
- theRow = theRow & 0x0000FFFF;
- printf ("The GDevice I am looking at has a Row Bytes of %X\n", theRow);
- } while ((theGDList = GetNextDevice(theGDList)) != nil);
-
- theGDList = GetDeviceList();
-
- do {
- theDepth = (*(*theGDList)->gdPMap)->pixelSize;
- theDepth = theDepth & 0x0000FFFF;
- printf ("The GDevice I am looking at has a Row Bytes of %i\n", theDepth);
- } while ((theGDList = GetNextDevice(theGDList)) != nil);
-
- return(0);
- }